package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.setting.MaterialsInfo;
import com.org.dao.setting.MaterialsInfoMapper;
import com.org.service.MaterialsService;

@Service("materialsService")
public class MaterialsServiceimpl implements MaterialsService {
	@Autowired
	private MaterialsInfoMapper materialsInfoMapper;

	@Override
	public List<MaterialsInfo> findAll() {
		// TODO Auto-generated method stub
		return materialsInfoMapper.findAll();
	}

	@Override
	public List<MaterialsInfo> findById(int materialsId) {
		// TODO Auto-generated method stub
		return materialsInfoMapper.findById(materialsId);
	}

	@Override
	public boolean addMaterials(MaterialsInfo materialsInfo) {
		// TODO Auto-generated method stub
		return materialsInfoMapper.addMaterials(materialsInfo);
	}

	@Override
	public boolean deleteMaterials(int materialsId) {
		// TODO Auto-generated method stub
		return materialsInfoMapper.deleteMaterials(materialsId);
	}

	@Override
	public boolean updateMaterials(MaterialsInfo materialsInfo) {
		// TODO Auto-generated method stub
		return materialsInfoMapper.updateMaterials(materialsInfo);
	}

}
